-
-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: file leak in read_excel #30096
BUG: file leak in read_excel #30096
Conversation
LGTM - if this works! thanks for the fix! |
great. maybe keep rebasing a few times this to see if it fails. |
Seems like a more effective way of checking this against many runs would be to merge and see if the py36 failures go away? |
sure |
@jbrockmendel xref #47656: Does this miss a |
That's plausible, but I'll need a lot more caffeine to say more than that. An extra better-safe-than-sorry gc.collect call wouldn't be the end of the world. |
I think this
closes #30031
closes #29514
we'll probably want to wait a few days to make it official.
To make the new test decorator useful in the CI we'll need to add psutil to the environment (unless someone knows of a stdlib way of doing the same check?)
One more note, the check in check_no_file_leaks depends on
__del__
having been called, which in turn depends on the gc. I'm not sure, but that might induce another layer of flakiness. If so, I think that can be fixed by callinggc.collect()
before doing theflist == flist2
check